package owlapps2012.owlToSql.base;

public enum SQLType 
{
	DB2 ("DB2"),
	ORACLE ("ORACLE"),
	POSTGRES ("POSTGRES"),
	MSSQL ("MSSQL"),
	MYSQL ("MYSQL");
	
	private final String name;
	
	SQLType(String name)
	{
		this.name = name;
	}
	
	public static SQLType getSqlTypeByName(String pName)
	{
		for(SQLType s : SQLType.values())
		{
			if(s.name.equals(pName))
				return s;
		}
		return null;
	}

	public String getName() {
		return name;
	}
}
